package com.basic.library.brvah;

import android.view.View;

import com.chad.library.adapter.base.BaseViewHolder;

import androidx.databinding.ViewDataBinding;

/**
 * @author yj
 * @description
 */
public class MBaseViewHolder extends BaseViewHolder {
    public ViewDataBinding binding;

    public MBaseViewHolder(ViewDataBinding binding) {
        super(binding.getRoot());
//        binding.getRoot().setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
        this.binding = binding;
    }

    public MBaseViewHolder(final View view) {
        super(view);
    }

    public void setBinding(ViewDataBinding binding) {
        this.binding = binding;
    }
}
